<template>
  <div>
    <TopBar :list="list"></TopBar>
    <MiddleBar :list="list"></MiddleBar>
    <BottomBar :list="list"></BottomBar>
  </div>
</template>

<script>
import TopBar from '@/components/detail/TopBar.vue'
import MiddleBar from '@/components/detail/MiddleBar.vue'
import BottomBar from '@/components/detail/BottomBar.vue'
import { information } from '@/api/article'

export default {
  name: 'detail-page',
  components: {
    TopBar,
    MiddleBar,
    BottomBar
  },
  async created () {
    const id = this.$route.query.id
    const res = await information(id)
    this.list = res.body
  },
  data () {
    return {
      list: {}
    }
  }
}
</script>

<style lang="less" scoped>
/deep/.van-nav-bar__content {
  background-color: #15b572;
}
/deep/.van-nav-bar .van-icon {
  color: #fff;
}
</style>
